package controllers.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import views.MainPanel;
import controllers.OntologyModuleController;

/* Loads the Ontology Module */
/* actionPerformed when you click on the menu "Lexicon and Ontology" and then click the menu item "Ontology" */
public class MenuOntologyActionListener implements ActionListener {
	
	private MainPanel mp;
	
	public MenuOntologyActionListener() {
		mp = null;
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		try {
			new OntologyModuleController(mp);
		}
		catch (Exception ex) {
			ex.printStackTrace();
		}
	}
	
	public void setMainPanel(MainPanel mp) {
		this.mp = mp;
	}
	
}
